package com.gree.auth.service.impl;

import com.gree.auth.service.SysUserSaasService;
import com.gree.common.service.impl.BaseServiceImpl;
import com.gree.framework.entity.SaasTenant;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.springframework.stereotype.Service;

/**
 * Created by 180686 on 2021/3/17 9:37
 */

@Service
public class SysUserSaasServiceImpl extends BaseServiceImpl<SaasTenant> implements SysUserSaasService {
    public SysUserSaasServiceImpl(Dao dao) {
        super(dao);
    }

    @Override
    public SaasTenant findByUserName(String sys_uid) {
        SaasTenant saasTenant = this.fetch(Cnd.where("sys_uid","=",sys_uid));
        return saasTenant;
    }
}

